package codequity.two;

import java.util.ArrayList;
import java.util.List;

public class Client26 {
    public static int f(List<Integer> list) {
        int count = 0;
        for (Integer i : list) {
            if (i != null) {
                count += i;
            }
        }
        return count;
    }


    public static void main(String[] args) {
        List<Integer> list = new ArrayList<Integer>();
        list.add(1);
        list.add(2);
        list.add(null);
        System.out.println(f(list));
    }
}
